﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HAMath
{
    [Serializable]
    public class SearchOption : ICloneable
    {

        public SearchOption()
        { 
        }

        private int _minimumNum = 1;

        /// <summary>
        /// 插值时所用点最小个数
        /// </summary>
        public int MinimumNum
        {
            get { return _minimumNum; }
            set 
            {
                if (value < 1)
                {
                    value = 1;
                }
                _minimumNum = value; 
            }
        }


        private int _maximumNum = 32;

        /// <summary>
        /// 插值时所用点最大个数
        /// </summary>
        public int MaximumNum
        {
            get { return _maximumNum; }
            set 
            {
                if (value < 1)
                {
                    value = 1;
                }
                _maximumNum = value;
            }
        }


        public object Clone()
        {
            return this.MemberwiseClone();
        }


    }
}
